<?php if (!defined ('TYPO3_MODE')) 	die ('Access denied.'); ?>

<br /><hr /><br />

<h2>Example 14: Typolink</h2>

<p>
    <?php echo $this->t3typolink('Link to an internal page', $this->t3page('uid'), array('param1' => 'abc', 'param2' => 'def')) ?><br />
    <?php echo $this->t3typolink('Link to an internal page (target=_blank)', $this->t3page('uid'), array('param1' => 'abc', 'param2' => 'def'), '_blank') ?><br />
    <?php echo $this->t3typolink('Link to an internal page (pi-vars)', $this->t3page('uid'), array('tx_zviewtest_pi1' => array('param1' => 'abc', 'param2' => 'def'))) ?><br />
    <?php echo $this->t3typolink('Link to an external page', 'www.example.org') ?><br />
    <?php echo $this->t3typolink('Link to an external page (target=_blank)', 'www.example.org', array(), '_blank') ?><br />
    <?php echo $this->t3typolink('Link to a file', 'typo3conf/ext/zviewtest/pi1/res/colors.gif') ?><br />
    <?php echo $this->t3typolink('E-mail link', 'test@test.test') ?>
</p>

<p>
    URL to an internal page: <?php echo $this->t3typolink()->url($this->t3page('uid'), array('param1' => 'abc', 'param2' => 'def')) ?><br />
    URL to an internal page (pi-vars): <?php echo $this->t3typolink()->url($this->t3page('uid'), array('tx_zviewtest_pi1' => array('param1' => 'abc', 'param2' => 'def'))) ?><br />
    URL to an external page: <?php echo $this->t3typolink()->url('www.example.org') ?><br />
    URL to a file: <?php echo $this->t3typolink()->url('typo3conf/ext/zviewtest/pi1/res/colors.gif') ?><br />
    URL E-mail link: <?php echo $this->t3typolink()->url('test@test.test') ?>
</p>
